<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/taglib/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/taglib/struts-html.tld" prefix="html" %>

<div id="content">
	<h3>
		<bean:message key="common.message_create.messages.new_message"/>
	</h3>
	
	<html:form action="/message/sendStudent" method="post" enctype="multipart/form-data">
	
	<table class="custom_table">
			<tr>
				<td>
					<bean:message key="common.message_create.messages.user_to" /><span
					style="color: red;">*</span> : <br />
					<div style="color: red; font-size: 11px;">
						<html:errors property="userTo" />
					</div>
				</td>
				<td>
					<html:select name="messageForm" property="userToId" >
						<html:option value=""></html:option>
						<html:optionsCollection name="messageForm" property="userList" label="label" value="value"/>
					</html:select>
				</td>
			</tr>
			<tr>
				<td>
					<bean:message key="common.messages.message" /><span
							style="color: red;">*</span> :<br />
					<div style="color: red; font-size: 11px;">
						<html:errors property="message" />
					</div>
				</td>
				<td>
					<html:textarea cols="40" rows="8" name="messageForm" property="message" />
				</td>
			</tr>
			<tr>
				<td>
					<bean:message key="common.messages.attach_file" /> :<br />
					<div style="color: red; font-size: 11px;">
						<html:errors property="fileAttach" />
					</div>
				</td>
				<td><html:file name="messageForm" property="fileAttach" /></td>
			</tr>
			<tr>
				<td></td>
				<td>
					<html:submit property="method" value="send"/>
				</td>
			</tr>
	</table>
	</html:form>
</div>